﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Jayrock.Json;

namespace SilkRoute.Class
{
    public partial class misc : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string action = Request["action"].ToString();
            JsonObject jObj = new JsonObject();

            switch (action)
            {

                // create profile location info
                case "profileLocationInfo":
                    Int32 profileId = Convert.ToInt32(Request["profileId"].ToString());
                    string ip = Request["ip"].ToString();
                    string continentCode = Request["continentCode"].ToString();
                    string countryCode = Request["countryCode"].ToString();
                    string countryName = Request["countryName"].ToString();
                    string regionName = Request["regionName"].ToString();
                    string cityName = Request["cityName"].ToString();
                    string latitude = Request["latitude"].ToString();
                    string longitude = Request["longitude"].ToString();
                    string timezone = Request["timezone"].ToString();
                    break;
            }
            

            Response.Write(jObj);
        }
    }
}